package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {

    //查询所有用户
    public List<User> findAll() throws Exception;

    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //通过id查询
    public User findById(int id) throws Exception;

    // 新增单个用户
    public int insert(User user);

    // 更新单个用户
    public int update(User user);


    // 删除单个用户
    public int delete(User user);
    // 通过id删除单个
    public int deleteById(Integer id);

}
